package Acwing;

public class Acwing16 {
    public String replaceSpaces(StringBuffer str) {
        String str1=str.toString();
        str1=str1.replaceAll("\\s+","%20");
        return str1;
    }
}
